<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta charset="UTF-8">
    <title>包装供应商-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../static/aaa/css/font.css">
    <link rel="stylesheet" href="../static/aaa/css/xadmin.css">
    <script src="../static/aaa/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../static/aaa/js/xadmin.js"></script>
    <script src="../static/aaa/js/jquery-3.1.1.js"></script>
</head>
<body>
<table class="layui-table" lay-data="{height:315, url:'/demo/table/user/', page:true, id:'tableInfo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'id', width:80, sort: true}">ID</th>
        <th lay-data="{field:'username', width:80}">用户名</th>
        <th lay-data="{field:'sex', width:80, sort: true}">性别</th>
        <th lay-data="{field:'city'}">城市</th>
        <th lay-data="{field:'sign'}">签名</th>
        <th lay-data="{field:'experience', sort: true}">积分</th>
        <th lay-data="{field:'score', sort: true}">评分</th>
        <th lay-data="{field:'classify'}">职业</th>
        <th lay-data="{field:'wealth', sort: true}">财富</th>
    </tr>
    </thead>
</table>

</body>
<script type="javascript">
    $("#addTable").click(function(){
        var tr=" <tr>"+
            "  <td>11</td>"+
            "  <td>22</td>"+
            "  <td>33</td>"+
            "  <td>44</td>"+
            "  <td>55</td>"+
            "  </tr>";
        $(".layui-table").append(tr);
    })
</script>
</html>
